<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    ChooseCommunity
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=true&amp;key=ABQIAAAANZpkzy1hzniOdrD9rA0IbRSEI1_Qq8zgGfEGsi5vEiYEnJ8VPBRqvOHMiW0-HpOgOBq9AHRWq2yrOA"
        type="text/javascript"></script>

    <script src="../../Scripts/Profile/ChooseCommunity.js" type="text/javascript"></script>

    <h2>
        ChooseCommunity</h2>
    <%= Html.ValidationSummary("Community Addition was unsuccessful. Please correct the errors and try again.") %>
    <% using (Html.BeginForm("ChooseCommunity", "Profile"))
       { %>
    <ol>
        <li>Enter your zip code or address to center on your community</li>
        <li>Click on your house to populate the form</li>
        <li>Press the select community button to join in the fun</li>
    </ol>
    <p>
        <label for="ZipCode">
            House Finder:</label>
        <%= Html.TextBox("ZipCode") %>
        <%= Html.ValidationMessage("ZipCode") %>
        <a href="#" id="SetCommunity">Move to Community</a>
        <br />
        "myzip" or "999 mystreet mycity myzip"
    </p>
    <div>
        <div id="map_canvas" style="width: 500px; height: 300px; float: left">
        </div>
        <div style="float: right; left: auto">
            <div style="float: left;">
                <fieldset>
                    <table>
                        <tbody>
                            <tr>
                                <td>
                                    Actual Zip Code:
                                </td>
                                <td>
                                    <%=Html.TextBox("ActualZipCode", "", new { @readonly=true})%>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Latitude:
                                </td>
                                <td>
                                    <%=Html.TextBox("Latitude", "", new { @readonly=true})%>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Longitude:
                                </td>
                                <td>
                                    <%=Html.TextBox("Longitude", "", new { @readonly=true})%>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    City:
                                </td>
                                <td>
                                    <%=Html.TextBox("City", "", new { @readonly=true})%>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    State:
                                </td>
                                <td>
                                    <%=Html.TextBox("State", "", new { @readonly=true})%>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Address:
                                </td>
                                <td>
                                    <%=Html.TextBox("Address", "", new { @readonly=true})%>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Accuracy:
                                </td>
                                <td>
                                    <%=Html.TextBox("Accuracy", "", new { @readonly=true})%>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <p>
                        <input type="submit" value="Select Community" />
                    </p>
                </fieldset>
            </div>
        </div>
    </div>
    <%} %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="StyleInjection" runat="server">
</asp:Content>
